/**
 * 
 */
package org.vsg.common.orm.hibernate;

import org.springframework.dao.DataAccessException;


/**
 * Defined the most of Dao
 * @author vison
 *
 */
public interface GenericDao {

	/**
	 * Set the generic save object 
	 * @param entity
	 * @throws DataAccessException
	 */
	void save(Object entity) throws DataAccessException;
	
	
	void update(Object eneity) throws DataAccessException;
	
	
	Object load(Class cls,java.io.Serializable pk) throws DataAccessException;
	
	
	void delete(Object entity) throws DataAccessException;

	
}
